<?php

require('../fpdf/fpdf.php');

$pdf = new FPDF('L', 'mm', array(80,100));
$pdf->AddPage();
$pdf->Image($p_pho,5,5,35,25);

$pdf->SetXY(42,8);
$pdf->SetFont('Arial','b',16);
$pdf->Cell(40,5,$p_rai,0,0);

$pdf->SetXY(42,15);
$pdf->SetFont('Arial','',8);
$pdf->Cell(40,5,"Message de l'entreprise",0,0);

$pdf->SetXY(42,18);
$pdf->SetFont('Arial','',8);
$pdf->MultiCell(25,5,$p_adr);

$pdf->SetLineWidth(2);
$pdf->SetDrawColor(100);
$pdf->Line(0,32,100,32);
$pdf->SetFillColor(200);
$pdf->Rect(0,32,100,50,'F');

$pdf->SetLineWidth(0);
$pdf->SetDrawColor(0);
$pdf->Rect(4,4,85,54);

$pdf->SetXY(7,35);
$pdf->SetFont('Arial','',10);
$pdf->Cell(30,5,"COMMERCIAL");

$nomprenom = $p_nom." ".$p_pre;
$pdf->SetXY(7,40);
$pdf->SetFont('Arial','b',14);
$pdf->Cell(50,8,$nomprenom);

$pdf->SetXY(7,48);
$pdf->SetFont('Arial','',8);
$pdf->Cell(30,5,$p_ema,0,0,'L');
$pdf->SetXY(7,52);
$pdf->Cell(30,5,"Site web");

$pdf->SetXY(65,35);
$pdf->SetFont('Arial','',8);
$pdf->Cell(30,5,$p_tel);

$pdf->Output();
?>